package com.cty.util.converter;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

/**
 * ModuleConverter
 *
 * @author : cty
 * @since 2023/11/19
 */


public class ModuleConverter extends ClassicConverter {

    private static final int MAX_LENGTH = 20;

    @Override
    public String convert(ILoggingEvent event) {
        return event.getLoggerName().length() > 20 ? "" : event.getLoggerName();
    }
}
